<%= javascript_include_tag('task/edit.js') %>

<table class="mainpage_content_table" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td style="font-size:16px;font-weight:bold;padding-top:10px;padding-left:10px;padding-right:10px;">Task Create!!</td>
  </tr>
  <tr>
    <td><%= image_tag("/images/content_head_border1.gif", :width=>"100%", :height=>"3px") %></td>
  </tr>
  <tr>
    <td style="padding-left:20px;padding-right:20px;">
      <div id="content_pro">
        <%= page_label(:label, :task_is_added) %>

          <%= form_tag(:action=>"update") %>
          <%= hidden_field_tag :base_id, @base_id %>
          <%= hidden_field :task, :id %>
          <%= hidden_field :projectcomp, :task_kbn, :value=>"1" %>
          <%= hidden_field :projectcomp, :class_word1 %>
          <%= hidden_field :projectcomp, :class_word2 %>
          <%= hidden_field :projectcomp, :class_word3 %>
          <table id="form_table_1" border="0" cellspacing="10" style="margin:20px;" width="100%">
            <tr>
              <td><%= page_label(:label, :project) %></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td id="remote_form_classkbn"><%= select_for_projects(:projectcomp, :project_id, 
                                                                    @projectcomp,
                                                                    @projects,
                                                                    {}, :style=>"width:300px;" ) %></td>
              <td><%= image_tag("/images/spacer.gif", :width=>"100px", :height=>"1px") %></td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:projectcomp, :project_id) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :item_name_task) %></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td><%= text_field :projectcomp, :item_name, :style => "width:300px;ime-mode:active;", :maxlength => "100" %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:projectcomp, :item_name) %></td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:projectcomp, :parent_id) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :priority_kbn) %></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <%= radio_button :task, :priority_kbn, "1" %><%= page_label(:label, :priority_kbn_1) %>
                <%= radio_button :task, :priority_kbn, "2" %><%= page_label(:label, :priority_kbn_2) %>
                <%= radio_button :task, :priority_kbn, "3" %><%= page_label(:label, :priority_kbn_3) %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :priority_kbn) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :plan_power) %></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <%= text_field :task, :plan_power, :style => "width:80px;ime-mode:disabled;", :maxlength => "10" %>
                <%= select_for_codes(:task, :tani_kbn,
                                       [1, 2, 3], {},
                                       :style=>"width:80px;" ) %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :plan_power) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :fcas_power) %></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <%= text_field :task, :fcas_power, :style => "width:80px;ime-mode:disabled;", :maxlength => "10" %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :fcas_power) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :exp_power) %></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <%= text_field :task, :exp_power, :style => "width:80px;ime-mode:disabled;", :maxlength => "10" %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :exp_power) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :client_user) %></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td><%= select_for_users(:task, :client_user_id, 
                                          {}, :style=>"width:300px;" ) %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :client_user_id) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :main_user) %></td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td><%= select_for_users(:task, :main_user_id, 
                                          {}, :style=>"width:300px;" ) %></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :main_user_id) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :complete_date) %></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <%= date_pick_field :task, :complete_date, :style => "width:80px;ime-mode:disabled;", :maxlength => "10" %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :complete_date) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :progress_kbn) %></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <%= select_for_codes(:task, :progress_kbn,
                                       [0, 1, 2, 3, 9], {},
                                       :style=>"width:80px;" ) %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :progress_kbn) %></td>
            </tr>
            <tr>
              <td><%= page_label(:label, :progress_rate) %></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <%= select_for_codes(:task, :progress_rate,
                                       [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], {},
                                       :style=>"width:80px;" ) %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :progress_rate) %></td>
            </tr>
            <tr>
              <td valign="top"><%= page_label(:label, :memo) %></td>
              <td></td>
              <td></td>
              <td></td>
              <td>
                <%= text_area :task, :memo, :style=>"width:300px;", :rows=>5 %>
              </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="4"></td>
              <td colspan="2"><%= error_message_on(:task, :memo) %></td>
            </tr>
            <tr>
              <td colspan="6" style="text-align:right;"><%= submit_tag(app_localized_message(:label, :add_task)) %></td>
            </tr>
          </table>
        </form>
      </div>
    </td>
  </tr>
</table>